home *** CD-ROM | disk | FTP | other *** search
/ PD Collection CD 1 / PD Collection CD 1.iso / textual / tex / files / !tex / mfinputs / waits / mf < prev   
Encoding:
Text File  |  1988-02-26  |  6.4 KB  |  170 lines

  1. % This is WAITS.MF in text format, as of Mar 31, 1986.
  2. % This file can be loaded after PLAIN.MF.
  3. % It introduces conventions that are commonly used at WAITS.
  4. base_version:=base_version&"/WAITS";
  5.  
  6. % The WAITS implementation allows an extended character set;
  7. % characters :=, <=, <>, and >= are put into the class with <, =, >, :, and |;
  8. % character ^^L (form feed) is in a class by itself, and is like an "outer" \.
  9. % Files containing these special characters should not be expected to work
  10. % elsewhere unless the following replacements are made:
  11.   let <= = <=;
  12.   let <> = <>;
  13.   let >= = >=;
  14.   let := = :=;
  15.  
  16. % Say "boise_proof" on the command line, to get proofmode on boise
  17. def boise_proof = lcode_:=" /";
  18.  extra_setup:=extra_setup&"grayfont grbois;" enddef;
  19.  
  20. screen_rows:=400; screen_cols:=480;
  21.  
  22. % Here are conventions for local output devices:
  23.  
  24. mode_def dover =  % dover mode: for the Xerox Dover
  25.  proofing:=0;      % no, we're not making proofs
  26.  fontmaking:=1;      % yes, we are making a font
  27.  tracingtitles:=0;    % no, don't show titles in the log
  28.  pixels_per_inch:=384;
  29.  blacker:=1.2;      % make pens somewhat blacker
  30.  fillin:=0;      % no compensation for fillin
  31.  o_correction:=.6;    % but don't overshoot as much
  32.  enddef;
  33.  
  34. mode_def imagen =  % imagen mode: for the Imagen 8/300 (Canon engine)
  35.  proofing:=0;      % no, we're not making proofs
  36.  fontmaking:=1;      % yes, we are making a font
  37.  tracingtitles:=0;    % no, don't show titles in the log
  38.  pixels_per_inch:=300;
  39.  blacker:=0;      % Canon engine is black enough
  40.  fillin:=.2;      % and it tends to fill in diagonals
  41.  o_correction:=.6;    %
  42.  enddef;
  43.  
  44. mode_def qms =    % qms mode: for the QMS (Xerox engine)
  45.  proofing:=0;      % no, we're not making proofs
  46.  fontmaking:=1;      % yes, we are making a font
  47.  tracingtitles:=0;    % no, don't show titles in the log
  48.  pixels_per_inch:=300;
  49.  blacker:=.75;      % (this value is conjectural)
  50.  fillin:=0;      % (ditto)
  51.  o_correction:=.5;    % (ditto)
  52.  enddef;
  53.  
  54. mode_def aps =    % aps mode: for the Autologic APS-Micro5
  55.  proofing:=0;      % no, we're not making proofs
  56.  fontmaking:=1;      % yes, we are making a font
  57.  tracingtitles:=1;      % yes, show titles online
  58.  pixels_per_inch:=722.909;    % that's roughly 10 per pt
  59.  blacker:=.2;      % make pens a teeny bit blacker
  60.  fillin:=.2;      % but compensate for diagonal fillin
  61.  o_correction:=1;      % and keep the full overshoot
  62.  enddef;
  63.  
  64. mode_def crs =    % crs mode: for the Alphatype CRS
  65.   proofing:=0;      % no, we're not making proofs
  66.  fontmaking:=1;      % yes, we are making a font
  67.  tracingtitles:=1;      % yes, show titles online
  68.  begingroup interim warningcheck:=0;  % (we need to go past 4096)
  69.   pixels_per_inch:=4000+4000/3 endgroup;  % HIGH res
  70.  blacker:=4;      % make pens a lot blacker
  71.  fillin:=0;      % but don't compensate for fillin
  72.  o_correction:=1;      % and keep the full overshoot
  73.  enddef;
  74.  
  75. mode_def boise =  % boise mode: for the HP 2680A
  76.  proofing:=0;      % no, we're not making proofs
  77.  fontmaking:=1;      % yes, we are making a font
  78.  tracingtitles:=0;    % no, don't show titles in the log
  79.  pixels_per_inch:=180;
  80.  blacker:=.55;      % make pens a bit blacker
  81.  fillin:=.1;      % and compensate for diagonal fillin
  82.  o_correction:=.3;    % but don't overshoot much
  83.  enddef;
  84.  
  85. mode_def DD =  % DD mode: for the DataDisc (usually with mag=magstep 2=1.44)
  86.  proofing:=0;      % no, we're not making proofs
  87.  fontmaking:=1;      % yes, we are making a font
  88.  tracingtitles:=0;      % no, don't show titles in the log
  89.  pixels_per_inch:=70;    % really lowres
  90.  blacker:=0;      % don't make the pens any blacker
  91.  fillin:=0;        % and don't compensate for fillin
  92.  o_correction:=.2;      % but suppress most overshoots
  93.  enddef;
  94.  
  95. mode_def canon =  % canon mode: for the old Imagen (Canon LBP10)
  96.  proofing:=0;      % no, we're not making proofs
  97.  fontmaking:=1;      % yes, we are making a font
  98.  tracingtitles:=0;    % no, don't show titles in the log
  99.  pixels_per_inch:=240;
  100.  blacker:=.2;      % make pens a wee bit blacker
  101.  fillin:=.2;      % and compensate for fillin
  102.  o_correction:=.4;    % but don't overshoot as much
  103.  enddef;
  104.  
  105. mode_def newDD =  % newDD mode: for DataDisc with special aspect ratio
  106.  proofing:=0;      % no, we're not making proofs
  107.  fontmaking:=1;      % yes, we are making a font
  108.  tracingtitles:=0;    % no, don't show titles in the log
  109.  pixels_per_inch:=70;    % really lowres
  110.  blacker:=0;      % don't make the pens any blacker
  111.  fillin:=0;      % and don't compensate for fillin
  112.  o_correction:=.2;    % but suppress most overshoots
  113.  aspect_ratio:=4/3;    % this is the new feature...
  114.  enddef;
  115.  
  116. mode_def cg =    % cg mode: for the Compugraphic 8600
  117.  proofing:=0;      % no, we're not making proofs
  118.  fontmaking:=1;      % yes, we are making a font
  119.  tracingtitles:=1;      % yes, show titles online
  120.  pixels_per_inch:=1301.5;    % a bit less than 20 per pt
  121.  blacker:=.2;      % make pens a teeny bit blacker
  122.  fillin:=.2;      % but compensate for diagonal fillin
  123.  o_correction:=1;      % and keep the full overshoot
  124.  aspect_ratio:=1569/1301.5;    % strange, no?
  125.  enddef;
  126.  
  127. mode_def epson =  % Epson
  128.  proofing:=0;      % no, we're not making proofs
  129.  fontmaking:=1;      % yes, we are making a font
  130.  tracingtitles:=0;    % no, don't show titles in the log
  131.  pixels_per_inch:=240;    % lowres
  132.  blacker:=0;      % don't make the pens any blacker
  133.  fillin:=0;      % and don't compensate for fillin
  134.  o_correction:=.2;    % but suppress most overshoots
  135.  aspect_ratio:=9/10;    % 216 dots/inch vertical
  136.  enddef;
  137.  
  138.  
  139. localfont:=imagen;
  140.  
  141. % Finally, here are macros for Xerox-world font info:
  142.  
  143. def font_family expr s =  % string s names the font family, e.g., "CMR"
  144.  headerbyte 49: BCPL_string(s,20);
  145.  special "identifier "&s enddef;
  146. def coding_scheme expr s = % string s names the scheme, e.g. "TEX TEXT"
  147.  headerbyte 9: BCPL_string(s,40);
  148.  special "codingscheme "&s enddef;
  149. def font_face_byte expr x = % integer x gives the family member number,
  150.  headerbyte 72: x;          % which should be between 0 and 255
  151.  special "fontfacebyte"; numspecial x enddef;
  152.  
  153. def BCPL_string(expr s,n)= % string s becomes an n-byte BCPL string
  154.  for l:=if length(s)>=n: n-1 else: length(s) fi: l
  155.   for k:=1 upto l: , substring (k-1,k) of s endfor
  156.   for k:=l+2 upto n: , 0 endfor endfor enddef;
  157.  
  158. Xerox_world:=1;    % users can say `if known Xerox_world:...fi'
  159.  
  160. inner end;
  161. def bye=
  162.  if fontmaking>0: font_family font_identifier_;
  163.   coding_scheme font_coding_scheme_;
  164.   font_face_byte max(0,254-round 2designsize); fi
  165.  tracingstats:=1;  % at least for now we want this
  166.  end
  167.  enddef;
  168.  
  169. outer bye,end;
  170.